import http from "../request.js";
let url = "/admin/article/";
// 列表
export function list(data) {
  return http.request({
    url: url + "articleInfoList",
    params: data,
  });
}
// 新增
export function add(data) {
  return http.request({
    url: url + "addArticleInfo",
    data,
    method: "post",
  });
}
// 详情
export function detail(data) {
  return http.request({
    url: url + "articleInfoDetail",
    data,
  });
}
// 删除
export function deleteItem(data) {
  return http.request({
    url: url + "deleteArticleInfo",
    data,
    method: "post",
  });
}
// 编辑
export function edit(data) {
  return http.request({
    url: url + "editorArticleInfo",
    data,
    method: "post",
  });
}
// 置顶
export function toTop(data) {
  return http.request({
    url: url + "topArticleInfo",
    data,
    method: "post",
  });
}
